package com.ruoyi.channel.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 渠道管理业务对象 t_channel_info
 *
 * @author zr
 * @date 2023-08-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TChannelInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 中文名称
     */
    @NotBlank(message = "中文名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 英文名称
     */
    private String code;

    /**
     * 公司地址
     */
    private String address;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String leader;

    /**
     * 联系电话
     */
    private String mobilePhone;

    /**
     * 省编码
     */
    @NotBlank(message = "省编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String provinceCode;

    /**
     * 市编码
     */
    private String cityCode;

    /**
     * 区编码
     */
    private String countyCode;

    /**
     * 状态（1正常 0停用）
     */
    @NotBlank(message = "状态（1正常 0停用）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 备注
     */
    private String remark;


}
